package com.atguign.gulimall.product.service;

import com.atguign.gulimall.product.entity.AttrEntity;
import com.atguign.gulimall.product.vo.AttrGroupRelationVo;
import com.atguign.gulimall.product.vo.AttrGroupWithAttrVo;
import com.atguign.gulimall.product.vo.SpuItemAttrGroupVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguign.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author liuxvru
 * @email liuxvru@163.com
 * @date 2024-01-13 18:09:18
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catlogId);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteReation(List<AttrGroupRelationVo> list);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<AttrGroupWithAttrVo> getAttrGroupWithAttrs(Long catelogId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long skuId, Long catalogId);
}

